xen: centralize accounting for domain tot_pages
authorDan Magenheimer <dan.magenheimer@oracle.com>
Mon, 10 Dec 2012 11:15:53 +0000 (11:15 +0000)
committerDan Magenheimer <dan.magenheimer@oracle.com>
Mon, 10 Dec 2012 11:15:53 +0000 (11:15 +0000)
commit1c3b9dd61dabb6415fad0c0ae432a4a78bfca7f5
treeee94213bc075524ee82cb8873c88d8bca0716977
parente93e0d9d73ce77bd1f3471af68a194b47e0e8c45
xen: centralize accounting for domain tot_pages

Provide and use a common function for all adjustments to a
domain's tot_pages counter in anticipation of future and/or
out-of-tree patches that must adjust related counters
atomically.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Committed-by: Keir Fraser <keir@xen.org>
xen/arch/x86/mm.c
xen/arch/x86/mm/mem_sharing.c
xen/common/grant_table.c
xen/common/memory.c
xen/common/page_alloc.c
xen/include/xen/mm.h